package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.ProjectDTO;
import com.fastjrun.eladmin.itrms.dto.ProjectSystemDTO;
import com.fastjrun.eladmin.itrms.entity.RmsProject;
import com.fastjrun.eladmin.itrms.entity.RmsProjectSystem;
import com.fastjrun.eladmin.itrms.vo.ProjectSystemVO;
import com.fastjrun.eladmin.itrms.vo.ProjectVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

public abstract class RmsProjectSystemMapperDecorator implements RmsProjectSystemMapper {

    @Autowired
    @Qualifier("delegate")
    private RmsProjectSystemMapper delegate;

    @Override
    public ProjectSystemVO toVO(RmsProjectSystem entity) {
        ProjectSystemVO projectVO=delegate.toVO(entity);
        return projectVO;
    }

    @Override
    public List<ProjectSystemVO> toVO(List<RmsProjectSystem> entityList) {
        return delegate.toVO(entityList);
    }

    @Override
    public RmsProjectSystem toEntity(ProjectSystemDTO dto) {
        return delegate.toEntity(dto);
    }
}
